package com.moduleSys.mapper;

import com.moduleSys.entity.system.User;
import com.moduleSys.mapper.base.BaseUserMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by czw on 2017/7/9 0009.
 */
public interface UserMapper extends BaseUserMapper {
    public User selectUser(User user);
    public User selectUserByUserName(String username);

    User getUserById(Long id);

    List<User> list();
    Long saveUser(@Param("username") String username,@Param("password") String password);

    List<User> selectByMap(Map<String, Object> map);
    void updateUserById(User record);

    void deleteBatchByUserId(@Param("userIdList") List<Long> userIdList);

    long countUser();

}
